using WpfApp1.DataAccess;
using WpfApp1.Models;

namespace WpfApp1.Services;

public class TeacherCourseSelectService : ITeacherCourseSelectService
{
    private readonly ITeacherCourseSelectDataAccess _teacherCourseSelectDataAccess;

    public TeacherCourseSelectService(ITeacherCourseSelectDataAccess teacherCourseSelectDataAccess)
    {
        _teacherCourseSelectDataAccess = teacherCourseSelectDataAccess;
    }
    
    //查看选择自己任课课程的学生信息
    public List<StudentCourseDto> GetStudentCourses(string teacherNumber)
    {
        return _teacherCourseSelectDataAccess.GetStudentCourses(teacherNumber);
    }
}